const list=[
    {
        id:1,
        name:"小明",
        gender:'男',
        age:20,
        score:80
    },
    {
        id:2,
        name:"小张",
        gender:'男',
        age:24,
        score:50
    },
    {
        id:3,
        name:"小画",
        gender:'女',
        age:21,
        score:40
    },
    {
        id:4,
        name:"猪小明",
        gender:'男',
        age:30,
        score:98
    }
]

//需求：想知道这个数组有没有同学的分数不及格的
const boolean=list.some(item=>{
    console.log(item)
    //{ id: 1, name: '小明', gender: '男', age: 20, score: 80 }
   //{ id: 2, name: '小张', gender: '男', age: 24, score: 50 }
    return item.score<60
})
console.log(boolean)   //true






let tableData=[
    {
        name:'朱浩然23232',
        age:12
    },
      {
        name:'选择性34323',
        age:12
    },
      {
        name:'1233天天学习',
        age:12
    },
       {
        name:'csetf天天234',
        age:12
    }
]
